 function goHrefFn(href) {
   window.location.href = href;
 };

 export default function clickGoDetails(id, type) {
   switch (type) {
     case 'ACTIVITY':
       goHrefFn(`http://stest.boqii.com/MobileApp/petactivities.html?quan_id=${id}&source=h5`)
       break;
     case 'SUBJECT':
       goHrefFn(`http://stest.boqii.com/MobileApp/activitydetailList.html?quan_id=${id}&source=h5`)
       break;
     case 'NOTE':
       goHrefFn(`http://stest.boqii.com/MobileApp/notedetail.html?quan_id=${id}&source=h5`)
       break;
       //  case 'USER':
       //    console.log('kwmdkwmd')
       //    this.$router.push({
       //      path: '/homepage?uid=' + id
       //    })
       //    break;
     case 'QUESTION':
       goHrefFn(`https://m.boqii.com/app/find/apps/wenda_detail.html?UserId=&QAId=${id}&source=h5`)
       break;
     case 'EVALUATION':
       goHrefFn(`http://stest.boqii.com/MobileApp/notedetail.html?quan_id=${id}&source=h5`)
       break;
     case 'TAG':
       // this.goHrefFn()
       break;
     case 'SHOPPINGMALL':
       goHrefFn(`http://stest.boqii.com/detail.html?GoodsId=${id}`)
       break;
     case 'SERVICE':
       goHrefFn(`http://v.boqii.com/merchant/${id}`)
       break;
   }
 };
